var mongoose = require("mongoose")

var Schema = mongoose.Schema

var messagesSchema = new Schema(
  {
  userid:{type:String,default:""},
  chatUserid:{type:String,default:""},
  content:{type:Array, default:''},
  isNewMessage:{type:Number,default:true}
},{versionKey: false})



var messagesModel = mongoose.model("messages", messagesSchema)

module.exports = messagesModel